//
//  QSBKHeader.h
//  NewProject
//
//  Created by Livespro on 2017/4/27.
//  Copyright © 2017年 FZ. All rights reserved.
//

#ifndef QSBKHeader_h
#define QSBKHeader_h

#define QSBK(url) [NSString stringWithFormat:@"https://m2.qiushibaike.com/%@",url]


/**
 缓存设置

 @return
 */
#define QSBKCacheSignYES [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"isQSBKCache"]

#define QSBKCacheSignNO [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"isQSBKCache"]

#define isQSBKCache [[NSUserDefaults standardUserDefaults] boolForKey:@"isQSBKCache"]


/**
 每页显示条数设置

 @param num
 @return
 */
#define QSBKPageShowSet(num) [[NSUserDefaults standardUserDefaults] setInteger:num forKey:@"QSBKPageShowNum"]

#define QSBKPageShow [[NSUserDefaults standardUserDefaults] integerForKey:@"QSBKPageShowNum"] ? [NSString stringWithFormat:@"%ld",[[NSUserDefaults standardUserDefaults] integerForKey:@"QSBKPageShowNum"]] : @"30"



/**
    默认定义

 @return
 */
#define kQsbkHeaderHeight 40

#define kQsbkContentFont 14

#endif /* QSBKHeader_h */
